import request from "@/utils/request.js";

// 商品列表
export function getGoodsList(id,data){
	return request.get(`product/spu/merchant/${id}`,data,{
		noAuth: false
	})
}

// 分类列表
export function getGoodsClassList(){
	return request.get('store/category/list',{},{
		noAuth: false
	})
}

// 商家详情
export function getShopDetail(id){
	return request.get(`store/merchant/detail/${id}`,{},{
		noAuth: false
	})
}

// 商品评论
export function getGoodsCommentsList(id){
	return request.get(`store/product/reply/lst/${id}`,{},{
		noAuth: false
	})
}

// 商家评论
export function getShopComments(id){
	return request.get(`store/product/reply/list/${id}`,{},{
		noAuth: false
	})
}

//商家优惠信息
export function getShopYh(id){
	return request.get(`coupon/store/${id}`,{},{
		noAuth: false
	})
}